From 7eaf227281e7c35cd09405ef3f94a4eeced22882 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 10 Apr 2011 10:03:45 -0500 Subject: [PATCH] Expect 0 from kill() for zombies on GNU/Hurd. Emacs should no longer hang while waiting for child processes on GNU/Hurd. Author: Samuel Thibault Date: Mon, 31 Jan 2011 01:13:35 +0100 Applied-By: Rob Browning Forwarded: bug-gnu-emacs@gnu.org Closes: #611591 --- src/sysdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysdep.c b/src/sysdep.c index 1fbc0617904..3abb43f14d2 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -411,7 +411,7 @@ wait_for_termination (pid) while (1) { #ifdef subprocesses -#if defined (BSD_SYSTEM) || defined (HPUX) +#if (defined (BSD_SYSTEM) || defined (HPUX)) && !defined(__GNU__) /* Note that kill returns -1 even if the process is just a zombie now. But inevitably a SIGCHLD interrupt should be generated and child_sig will do wait3 and make the process go away. */ -- 2.30.2